package Homework4;

import java.util.*;

public class Homework4_7_TestRectangle {
    public static void main(String[] args) {
        int top,bottom,left,right;
        Scanner input = new Scanner(System.in);
        top = input.nextInt();
        right = input.nextInt();
        bottom = input.nextInt();
        left = input.nextInt();
        Rectangle rec =new Rectangle(top,right,bottom,left);
        rec.showLeftTop();   //输出左上顶点的坐标
        rec.showRightTop();  //输出右上顶点的坐标
        rec.showLeftBottom();  //输出左下顶点的坐标
        rec.showRightBottom();  //输出右下顶点的坐标
        System.out.println(rec.getHeight() + " " + rec.getWidth());//输出高和宽
        System.out.println(rec.getArea() + " " + rec.getPerimeter());//输出面积和周长
    }
}
